package com.xopencode.order.controller;

import com.xopencode.order.dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mcb
 * @date 2022/4/24
 * @apiNote
 */
@RestController
@RequestMapping("/order")
public class OrderController {

    @Autowired
    private OrderDao orderDao;

    @RequestMapping("/add")
    public void addOrder(int state){
        orderDao.uppdate(state);
    }
}
